package com.kai.steering.data.service.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.kai.steering.common.vo.Page;
import com.kai.steering.common.web.service.impl.BaseServiceImpl;
import com.kai.steering.common.web.vo.ReturnCodeExt;
import com.kai.steering.data.service.entity.domainObject.KnowledgeDO;
import com.kai.steering.data.service.entity.domainObject.QuestionDO;
import com.kai.steering.data.service.entity.domainObject.TestDO;
import com.kai.steering.data.service.entity.dto.TestQueryDTO;
import com.kai.steering.data.service.entity.po.Test;
import com.kai.steering.data.service.entity.po.TestQuestion;
import com.kai.steering.data.service.entity.po.WarehouseTest;
import com.kai.steering.data.service.entity.vo.TestVO;
import com.kai.steering.data.service.mapper.TestMapper;
import com.kai.steering.data.service.mapper.TestQuestiontMapper;
import com.kai.steering.data.service.service.*;
import com.kai.steering.data.service.util.OfficeUtil;
import com.kai.steering.exception.ExcelException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <pre>
 * 试卷题目 服务实现类
 * </pre>
 *
 * @author kai
 * @since 2022-02-23
 */
@Slf4j
@Service
public class TestQuestiontServiceImpl extends BaseServiceImpl<TestQuestiontMapper, TestQuestion> implements TestQuestionService {
    @Autowired
    TestQuestiontMapper testQuestiontMapper;
    @Override
    public ArrayList<TestQuestion> getTestQuestionByTestId(String toString) {
        ArrayList<TestQuestion> testQuestionByTestId = testQuestiontMapper.getTestQuestionByTestId(toString);

        return testQuestionByTestId;
    }
}

